#write in 2019,6,2


from flask import Flask,url_for,views

app=Flask(__name__)

@app.route('/')
def hello():
    return 'hello world'

class list1(views.View):
    def dispatch_request(self):
        return 'this is list!'

app.add_url_rule('/list/',endpoint='list',view_func=list1.as_view('list'))

if __name__=='__main__':
    app.run()